# #
# # city=123123
# # # print('new UiSelector().text({0})'.format(city))
# # #
# # # print(f'new UiSelector().text({city})')
# # #
# # # print("选择服务器%s选择成功" % city)
# #
# # x="0.5kg"
# # print(x.strip('kg'))
# 
# from selenium import webdriver
# import unittest
# from selenium.webdriver.common.action_chains import ActionChains
# 
# 
# class test1(unittest.TestCase):
# 
#     def setUp(self):
#         self.driver = webdriver.Firefox()
#         self.baseurl = "http://www.xebest.com"
# 
#     #        self.driver.maximize_window()
# 
#     def dengLu(self):
#         browser = self.driver
#         browser.get(self.baseurl)
#         browser.find_element_by_link_text(u"请登录").click()
# 
#         # 调用isElementExist方法，判断元素是否存在
#         flag = test1.isElementExist(self, "div.popup-content")
# 
#         if flag:
# 
#             browser.find_element_by_id("userName").send_keys("")
#             browser.find_element_by_id("password").send_keys("")
#             browser.find_element_by_id("imgLogin").click()
#             print(browser.switch_to_alert().text)
#             browser.switch_to_alert().accept()
#         else:
#             print("没有弹框")
# 
#     #   该方法用来确认元素是否存在，如果存在返回flag=true，否则返回false
#     def isElementExist(self, element):
#         flag = True
#         browser = self.driver
#         try:
#             browser.find_element_by_css_selector(element)
#             return flag
# 
#         except:
#             flag = False
#             return flag
# 
#

print('sadsd的撒奥多')
from selenium import webdriver
browser = webdriver.Firefox()
